package com.mlj.dao;

import com.mlj.pojo.Admin;
import com.mlj.pojo.Dormitory;
import java.util.List;
import java.util.Map;

public interface DormitoryMapper {
    int deleteByPrimaryKey(Integer dormitoryId);

    int insert(Dormitory record);

    Dormitory selectByPrimaryKey(Integer dormitoryId);

    List<Dormitory> selectAll();

    int updateByPrimaryKey(Dormitory record);

    List<Dormitory> findDormitoryListByPage(Integer start, Integer limit);

    Integer selectCount();

    void delDormitoryById(Integer id);

    void deleteBatch(Integer[] ids);

    void insertDormitory(Dormitory dormitory);

    List<Admin> searchDormitoryByKw(Map<String, Object> paraMaps);

    Integer searchCountByKw(Map<String, Object> paraMaps);

    void insertHeader(Integer dormitoryId ,String bedName);

    Dormitory selectDormitoryById(Integer dormitoryId);
}